/*
 * @Author: deliteam 462085920@qq.com
 * @Date: 2022-12-14 17:15:08
 * @Description:
 */
import { ApiProperty } from '@nestjs/swagger';
import { BlobOptions } from 'buffer';
import { IsBoolean, IsNotEmpty, IsString } from 'class-validator';
export class CreateProductDto {
  id: string;

  @ApiProperty()
  @IsNotEmpty()
  @IsString()
  name: string;

  @ApiProperty()
  @IsString()
  addr: string;

  @ApiProperty()
  @IsString()
  route: string;

  @ApiProperty()
  @IsNotEmpty()
  @IsString()
  pic: string;

  @ApiProperty()
  @IsString()
  atlas: string;

  @ApiProperty()
  @IsNotEmpty()
  @IsString()
  category: string;

  @ApiProperty()
  intro: string;

  @ApiProperty()
  content: string;

  @ApiProperty()
  recommend: boolean;

  @ApiProperty()
  @IsBoolean()
  status: boolean;

  @ApiProperty()
  extendData: object;

  @ApiProperty()
  createdAt: Date;

  updatedAt: Date;
}
